import { translateTitle } from '@/utils/i18n'

const TestTraceLog = {
  TestTraceLog: {
    search: {
      form: {
        method: 'dams.mongodb.document.mark.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'REQUEST_UUID',
            label: translateTitle('Dams.ApplicationInterface.日志ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'USER_ID',
            label: translateTitle('Dams.ApplicationInterface.用户ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'MODULE_ID',
            label: translateTitle('Dams.ApplicationInterface.模块ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'BUTTON_ID',
            label: translateTitle('Dams.ApplicationInterface.按钮ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'MSG_RESOURCE',
            label: translateTitle('Dams.ApplicationInterface.消息来源'),
            labelHidden: false,
          },
          {
            type: 'datePicker',
            name: 'DATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.时间'),
            labelHidden: false,
            disabledDate: true,
            defaultTime: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'checkbox',
            name: 'ID',
            label: '',
            hidden: true,
          },
          {
            type: 'input',
            name: 'REQUEST_UUID',
            label: translateTitle('Dams.ApplicationInterface.日志ID'),
          },
          {
            type: 'input',
            name: 'MARK_TYPE',
            label: translateTitle('Dams.ApplicationInterface.留痕类型'),
          },
          {
            type: 'input',
            name: 'USER_ID',
            label: translateTitle('Dams.ApplicationInterface.用户ID'),
          },
          {
            type: 'input',
            name: 'REQUEST_IP',
            label: translateTitle('Dams.ApplicationInterface.来源IP'),
          },
          {
            type: 'input',
            name: 'CREATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.时间'),
          },
          {
            type: 'input',
            name: 'BEFORE_FILE_NAME',
            label: translateTitle('Dams.ApplicationInterface.文件原始名'),
          },
          {
            type: 'input',
            name: 'AFTER_FILE_NAME',
            label: translateTitle('Dams.ApplicationInterface.文件保存名'),
          },
          {
            type: 'input',
            name: 'ROOT_PATH',
            label: translateTitle('Dams.ApplicationInterface.保存的根路径'),
          },
          {
            type: 'input',
            name: 'FOLDER_PATH',
            label: translateTitle('Dams.ApplicationInterface.保存的文件夹路径'),
          },
          {
            type: 'input',
            name: 'FULL_PATH',
            label: translateTitle('Dams.ApplicationInterface.保存的完整路径'),
          },
          {
            type: 'input',
            name: 'FILE_SIZE',
            label: translateTitle('Dams.ApplicationInterface.文件大小'),
          },
          {
            type: 'input',
            name: 'FILE_SIZE_UNIT',
            label: translateTitle('Dams.ApplicationInterface.文件大小单位'),
          },
          {
            type: 'input',
            name: 'SERVER_TYPE',
            label: translateTitle('Dams.ApplicationInterface.服务器类型'),
          },
          {
            type: 'input',
            name: 'SERVER_IP',
            label: translateTitle('Dams.ApplicationInterface.服务器IP'),
          },
          {
            type: 'input',
            name: 'SERVER_PORT',
            label: translateTitle('Dams.ApplicationInterface.服务器端口'),
          },
          {
            type: 'input',
            name: 'SERVER_USER_NAME',
            label: translateTitle('Dams.ApplicationInterface.登录账户'),
          },
          {
            type: 'input',
            name: 'MODULE_ID',
            label: translateTitle('Dams.ApplicationInterface.业务模块id'),
          },
          {
            type: 'input',
            name: 'BUTTON_ID',
            label: translateTitle('Dams.ApplicationInterface.按钮id'),
          },
          {
            type: 'input',
            name: 'MSG_RESOURCE',
            label: translateTitle('Dams.ApplicationInterface.消息来源平台'),
          },
          {
            type: 'input',
            name: 'FILE_SUFFIX',
            label: translateTitle('Dams.ApplicationInterface.文件后缀'),
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    downloadMethods: '',
  },
}
export default TestTraceLog
